

package com.akjava.android.openglsamples.redbook;

import javax.microedition.khronos.opengles.GL;

import android.app.Activity;
import android.opengl.GLDebugHelper;
import android.os.Bundle;

import com.akjava.android.openglsamples.RedbookSampleGLView;
import com.akjava.lib.android.opengl.GLView;

public class ClipActivity extends Activity {

    /** Set to true to enable checking of the OpenGL error code after every OpenGL call. Set to
     * false for faster code.
     *
     *dont work on ADP1 fw1.0
     */
    private final static boolean DEBUG_CHECK_GL_ERROR = true;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setTitle("clip");
       
        //set directory otherwise ,cant get event.
        mGLView = new RedbookSampleGLView(this);
        setContentView(mGLView);
        
      
        ClipRenderer render= new ClipRenderer(this);
       mGLView.setEventHandleRender(render);
       
        mGLView.requestFocus();
        
    }

    @Override
    protected void onPause() {
        super.onPause();
        mGLView.onPause();
    }

    @Override
    protected void onResume() {
        super.onResume();
        mGLView.onResume();
    }

   private RedbookSampleGLView mGLView;
}
